#ifndef ECU_EEPROM_H_
#define ECU_EEPROM_H_


typedef union
{
	u32  	u32_Data;
	float f_Data;
} ECU_EE_UN;


u8 ECU_EE_Run_WData(void);
u8 ECU_EE_Run_RData(void);

void ECU_EEPROM_RUN(void);
u8 ECU_EEPROM_IDEL_Check(void);
void ECU_EEPROM_PORT_INIT(void);

void ECU_EEPROM_OBD_WCMD(void);
void ECU_EEPROM_OBD_RCMD(void);
void ECU_EEPROM_DTC_WCMD(void);
void ECU_EEPROM_DTC_RCMD(void);
void ECU_EEPROM_UDS_WCMD(void);
void ECU_EEPROM_UDS_RCMD(void);

void ECU_EE_WR_DTC_DATA(u32 Data_Addr,u8 Data_Lenth,u16 u16_Err_Num);
void ECU_EE_RR_DTC_DATA(u32 Data_Addr,u8 Data_Lenth,u16 u16_Err_Num);


void ECU_EE_WR_OBD_DATA(u32 Data_Addr,u8 Data_Lenth,u16 u16_Err_Num);
void ECU_EE_RR_OBD_DATA(u32 Data_Addr,u8 Data_Lenth,u16 u16_Err_Num);

#endif
